import request from '@/utils/request'

// 查询票房榜单列表
export function listDashboard(query) {
  return request({
    url: '/cinema/cinema/dashboard/list',
    method: 'get',
    params: query
  })
}

// 查询票房榜单详细
export function getDashboard(id) {
  return request({
    url: '/cinema/cinema/dashboard/' + id,
    method: 'get'
  })
}

// 新增票房榜单
export function addDashboard(data) {
  return request({
    url: '/cinema/cinema/dashboard',
    method: 'post',
    data: data
  })
}

// 修改票房榜单
export function updateDashboard(data) {
  return request({
    url: '/cinema/cinema/dashboard',
    method: 'put',
    data: data
  })
}

// 删除票房榜单
export function delDashboard(id) {
  return request({
    url: '/cinema/cinema/dashboard/' + id,
    method: 'delete'
  })
}

// 导出票房榜单
export function exportDashboard(query) {
  return request({
    url: '/cinema/cinema/dashboard/export',
    method: 'get',
    params: query
  })
}